<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class FileUtils {
	
	public static function deleteFile($path) {
		//if(is_file($path))
		unlink($path);
	}	
	
	public static function stream_copy($src, $dest) 
    { 
        $fsrc = fopen($src,'r'); 
        $fdest = fopen($dest,'w+'); 
        $len = stream_copy_to_stream($fsrc,$fdest); 
        fclose($fsrc); 
        fclose($fdest); 
        return $len; 
  }
	
}

